package com.mkb.dao.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.mkb.dao.GraphClueDAO;
import com.mkb.entity.GraphClueDO;
import com.mkb.mapper.GraphClueMapper;

import java.util.List;
import java.util.Map;

@Repository
public class GraphClueDAOImpl implements GraphClueDAO{
	
	@Autowired
	private GraphClueMapper graphClueMapper;
	
	@Override
	public int deleteById(Long id) {
		return graphClueMapper.deleteById(id);
	}

	@Override
	public int insert(GraphClueDO record) {
		return graphClueMapper.insert(record);
	}

	@Override
	public GraphClueDO getById(Long id) {
		return graphClueMapper.getById(id);
	}

	@Override
	public int update(GraphClueDO record) {
		return graphClueMapper.update(record);
	}

	@Override
	public int count(Map<String, Object> map) {
		return graphClueMapper.count(map);
	}

	@Override
	public List<GraphClueDO> queryList(Map<String, Object> params) {
		return graphClueMapper.queryList(params);
	}
	
	@Override
        public int insertBatch(List<GraphClueDO> dos) {
           return graphClueMapper.insertBatch(dos);
        }

	@Override
	public int deleteByGraphId(Long graphId) {
		return graphClueMapper.deleteByGraphId(graphId);
	}
}
